package lk.icta.user.common;

/**
 * @author Duminda Dharmakeerthi
 */
public class ErrorCodes {
    // Common User errors.
    public static final int INCOMPLETE_SUBMISSION = 101;
    public static final int INVALID_USER = 102;
    public static final int PASSWORD_REPASSWORD_MISMATCH = 103;

    // User Registration related errors.
    public static final int USER_NAME_NOT_AVAILABLE = 201;

    // User Authentication related errors.
    public static final int INVALID_INPUT = 301;
    public static final int USERNAME_PASSWORD_MISMATCH = 302;

    // Change Password related errors.
    public static final int CURRENT_PASSWORD_MISMATCH = 401;

    //persistence errors
    public static final int ENTITY_ALREADY_EXIST = 4001;
}
